package com.atguigu.gulimall.product.feign.fallback;

import com.atguigu.common.exception.BizCodeEnume;
import com.atguigu.common.utils.R;
import com.atguigu.gulimall.product.feign.SeckillFeignService;
import org.springframework.stereotype.Component;

/**
 * @author guoch0613@163.com
 * @Description
 * @create 2021-05-21 16:07
 */
@Component
public class SeckillFeignServiceFallback implements SeckillFeignService {
    @Override
    public R getSeckillSkuInfo(Long skuId) {
        System.out.println("熔断方法执行");
        return R.error(BizCodeEnume.SECKILL_EXCEPTION.getCode(),BizCodeEnume.SECKILL_EXCEPTION.getMsg());
    }
}
